﻿using FluentNHibernate.Mapping;

namespace Model
{
	public class AchievementCriteria
	{
		public virtual int ID { get; set; }
		public virtual int ExternalKey { get; set; }
		public virtual int Value { get; set; }
		public virtual string Description { get; set; }
		public virtual Achievement Achievement { get; set; }
	}

	public class AchievementCriteriaMapping : ClassMap<AchievementCriteria>
	{
		public AchievementCriteriaMapping()
		{
			Id(x => x.ID);
			Map(x => x.ExternalKey);
			Map(x => x.Value);
			Map(x => x.Description);
			References(x => x.Achievement).Column("Achievement_id");
		}
	}
}
